﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Trade.Journal
{
    public enum ReleaseDirection
    {
        [Description("未设置")] None,
        [Description("向上")] Up,
        [Description("向下")] Down
    }

    public enum ReleaseLevel
    {
        [Description("未设置")] None,
        [Description("爆炸")] Explode, 
        [Description("快速")] Fast,
        [Description("普通")] Normal,
        [Description("通道")] Channel,
    }

    public enum BasicType
    {
        [Description("标准")] Normal,
        [Description("加仓")] Overweight,
        [Description("共振")] Resonate,
        [Description("平衡")] Balance,
    }

    public enum CategoryType
    {
        [Description("矩形")] Rectangle,
        [Description("旗形")] FlagShaped,
        [Description("三角形")] Triangle, 
        [Description("通道")] Channel,
        [Description("双头/双底")] DoublePole=11,
        [Description("头肩顶/底")] HeadShoulder,
        [Description("异形")] Heteroideus=21,
        [Description("V形")] VShaped,
        [Description("极点")] Pole=31,
        [Description("边线")] Boundary, 
    }

    public enum ResultType
    {
        [Description("盈利")] Success,
        [Description("止损")] Fail,
        [Description("平保")] BreakEven
    }

    public enum CloseType
    {
        [Description("未设置")] None,
        [Description("K线")] KBar,
        [Description("定量")] Measure,
        [Description("均线")] MA
    }

    [Flags]
    public enum TradeType
    {
        [Description("入场")] Open,
        [Description("加仓")] Overweight = Open|Additive,
        [Description("减仓")] Underweight = Close|Additive,
        Additive = 0b10,
        [Description("离场")] Close = 0b01
    }

    public enum TradeDirection
    {
        [Description("多头")] Long,
        [Description("空头")] Short,
    }
     
    public enum RemarkType
    {
        [Description("心得")] Lesson,
        [Description("疑问")] Question, 
        //[Description("标签")] Label,

    }

    public enum CumulationType
    {
        [Description("矩形")] Rectangle,
        [Description("旗形")] FlagShaped,
        [Description("三角形")] Triangle,
        [Description("通道")] Channel,
        [Description("异形")] Heteroideus = 21,
        [Description("V形")] VShaped,
    }
}
